package com.levy.contronller.lamdaTest;

import cn.hutool.core.lang.Console;

import java.util.*;

public class CollectionTest {

    public static void main(String[] args) {
        List<String> list = Arrays.asList(new String[]{"a1", "b1", "b22", "c2"});
        Collections.sort(list, (o1, o2) -> o2.compareTo(o1));

//        Collections.sort(list, (o1, o2) -> o2.compareTo(o1));

//        Collections.sort(list, Collections.reverseOrder());
//
//        Console.log(list);

        String dd  = "\t恭喜尾号{$var1}玩家您的内部资质已...".replace("{$var1"  + "}", "#")
                .replaceFirst("#", "123456");
        System.out.println(dd);
    }
}
